import 'package:flutter/material.dart';

class IconContent extends StatelessWidget {
  // 构造函数
  IconContent({required this.iconData, required this.label});
  final IconData iconData;
  final String label;

  @override
  Widget build(BuildContext context) {
    return Column(
      mainAxisAlignment: MainAxisAlignment.center,
      children: [
        Icon(
          iconData,
          size: 50.0,
          color: Colors.white,
        ),
        SizedBox(
          height: 15.0,
        ),
        Text(
          label,
          style: TextStyle(fontSize: 25.0, color: Color(0xFF8D8E98)),
        )
      ],
    );
  }
}
